<?php 
      
     header("Content-type: text/css; charset: UTF-8");  
     
     //echo "#filtro_ss{ margin-top: 100px; }"; 
    //$base=new SQLite3('../em_bd.sqlite', 0666); 
    include_once '../conectar_bd.php';
    $base = conectar_para_css();
     
    $query = "SELECT * FROM estilo WHERE elemento='margen'";
    
    $rtdo = $base->query($query);
    
    if(!$rtdo){
        echo "consulta incorrecta";
    }
    //echo "#filtro_ss{ margin-top: 100px; }"; 
    $arr = $rtdo->fetchArray();
        

    $margen = $arr['valor'];
      //echo "$margen";
    
     //echo "#filtro_ss{ margin-top: $margen; }"; 
    if($margen=='true'){
        
        //$base=new SQLite3('em_bd.sqlite', 0666); 
        $query = "SELECT valor FROM estilo WHERE elemento = 'paginado'";
        $rtdo= $base->query($query);
        $arr = $rtdo->fetchArray();
        $max=$arr['valor'];
        
        $alto=$max/4*330+140;
        
        echo ".bloque_propiedades{ position:absolute; left:-25px; }";
        echo ".bloque_filtro{ position:absolute; right:0px; }";
        //echo ".contenedor_bloques{ position:relative; width:1152px; height:450px; }";
        echo ".contenedor_bloques{ position:relative; width:1152px; height:$alto";
        echo "px; }";
    }
      ?>
    
    
 
